import axios from '@/libs/api.request'
import qs from 'qs'

export const getTableData = (params) => {
  return axios.request({
    url: 'admins/equStatus/page?t='+new Date().getTime(),
    params,
    method: 'get'
  })
}
export const upData = (data) => {
  return axios.request({
    url: 'admins/equStatus/edit',
    data: qs.stringify(data),
    method: 'POST'
  })
}
export const confirmAlarm = (data) => {
  return axios.request({
    url: 'admins/equStatus/confirmAlarm',
    data: qs.stringify(data),
    method: 'POST'
  })
}
export const addIssure = (data) => {
  return axios.request({
    url: 'admins/equStatus/addIssure',
    data: qs.stringify(data),
    method: 'POST'
  })
}


//导出事件记录
export const importExcel = (params) => {
  return axios.request({
    url: 'admins/equStatus/download?t='+new Date().getTime(),
    method: 'get',
    responseType: 'blob',
    params
  })
}
